﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 外采订单表
    /// </summary>
    [Table("PB_Purchase")]
    public partial class PB_Purchase
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 外采订单名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 组织Id
        /// </summary>
        public String DeptId { get; set; }

        /// <summary>
        /// 外采日期
        /// </summary>
        public DateTime? PurchaseDate { get; set; }

        /// <summary>
        /// 预计交工日期
        /// </summary>
        public DateTime? HandoverDate { get; set; }

        /// <summary>
        /// 采供单位Id
        /// </summary>
        public String SupplierId { get; set; }

        /// <summary>
        /// 税率
        /// </summary>
        public Double? Rate { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        public Double? TotalAmount { get; set; }

        /// <summary>
        /// 总重量
        /// </summary>
        public Double? TotalWeight { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Remarks { get; set; }

        /// <summary>
        /// 状态：1-初始状态；2-已审核；3-确认；4-部分签收；5-签收完成
        /// </summary>
        public Int32? Status { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public String CreatorRealName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 二维码
        /// </summary>
        public string QrCode { get; set; }

    }
}